var BaseArticleinfo = app.controller('BaseArticleinfo', function($rootScope,$stateParams, $scope, $http,$state,$timeout,$cordovaDevice,$cordovaChat,BaseArticleinfoData) {
	try{
		$rootScope.showf=false;
		$scope.title="";
		$scope.info={};
		var url=SITE_URL+"index.php?app=userapp&act=articledetail&callback=JSON_CALLBACK&id="+$stateParams.id;
		$http.jsonp(url).success( function(data) {
			if(data.done){
				$scope.info=data.retval;
				if($scope.info!=null&&$scope.info.code!=null&&$scope.info.code!=''){
					$scope.title=$scope.info.title;
				}else{
					$scope.title="文章详情";
				}
			}
		});		
	}
	catch (e) {
		showcatch(e);
	}
});
BaseArticleinfo.BaseArticleinfoData=function($q, $http,$stateParams){
	/*
	try {
		var data = [];
		var def = $q.defer();	
		def.resolve(data);
		return def.promise;
		if(window.localStorage.u==undefined||window.localStorage.u==null||window.localStorage.u==""){
			$rootScope.go("loginmain");
		}
	} catch (e) {
		showcatch(e);
	}
	*/
}